home *** CD-ROM | disk | FTP | other *** search
/ How Many Bugs in a Box / How Many Bugs in a Box.cdr / bugs / act6a / 00058.ls < prev    next >
Encoding:
Text File  |  1995-03-28  |  761 b   |  26 lines

  1. on exitFrame
  2.   global partnum, chib, changer, takeinput, castnumber, buglist
  3.   set takeinput to 0
  4.   repeat with xxx = 1 to 48
  5.     puppetSprite(xxx, 0)
  6.   end repeat
  7.   set changer to EMPTY
  8.   set partnum to 1
  9.   repeat with xxx = 0 to 5
  10.     puppetSprite(22 + (2 * xxx), 1)
  11.     set the castNum of sprite (22 + (2 * xxx)) to getAt(castnumber, 12)
  12.     set the castNum of sprite (21 + (2 * xxx)) to getAt(castnumber, 11)
  13.   end repeat
  14.   updateStage()
  15.   if count(buglist) < 2 then
  16.     set buglist to [1, 2, 3, 4, 5, 6, 7]
  17.   end if
  18.   set chib to random(count(buglist))
  19.   getAt(buglist, chib)
  20.   deleteAt(buglist, chib)
  21.   if ramNeeded(marker("bug" & chib), marker("bugs" & chib)) > the freeBytes then
  22.     unLoadCast("Tall box 1", "bug9.4.6")
  23.   end if
  24.   go("bug" & chib)
  25. end
  26.